import 'package:enterprise_v6_app/generated/json/base/json_convert_content.dart';
import 'package:enterprise_v6_app/app/data/entities/application/standardiztion/standard_home_scence_facility_entity.dart';

StandardHomeScenceFacilityEntity $StandardHomeScenceFacilityEntityFromJson(Map<String, dynamic> json) {
  final StandardHomeScenceFacilityEntity standardHomeScenceFacilityEntity = StandardHomeScenceFacilityEntity();
  final String? accept = jsonConvert.convert<String>(json['accept']);
  if (accept != null) {
    standardHomeScenceFacilityEntity.accept = accept;
  }
  final String? check = jsonConvert.convert<String>(json['check']);
  if (check != null) {
    standardHomeScenceFacilityEntity.check = check;
  }
  final String? create = jsonConvert.convert<String>(json['create']);
  if (create != null) {
    standardHomeScenceFacilityEntity.create = create;
  }
  final String? inspection = jsonConvert.convert<String>(json['inspection']);
  if (inspection != null) {
    standardHomeScenceFacilityEntity.inspection = inspection;
  }
  final String? run = jsonConvert.convert<String>(json['run']);
  if (run != null) {
    standardHomeScenceFacilityEntity.run = run;
  }
  return standardHomeScenceFacilityEntity;
}

Map<String, dynamic> $StandardHomeScenceFacilityEntityToJson(StandardHomeScenceFacilityEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['accept'] = entity.accept;
  data['check'] = entity.check;
  data['create'] = entity.create;
  data['inspection'] = entity.inspection;
  data['run'] = entity.run;
  return data;
}

extension StandardHomeScenceFacilityEntityExtension on StandardHomeScenceFacilityEntity {
  StandardHomeScenceFacilityEntity copyWith({
    String? accept,
    String? check,
    String? create,
    String? inspection,
    String? run,
  }) {
    return StandardHomeScenceFacilityEntity()
      ..accept = accept ?? this.accept
      ..check = check ?? this.check
      ..create = create ?? this.create
      ..inspection = inspection ?? this.inspection
      ..run = run ?? this.run;
  }
}
